package com.codingfly.service;

import com.codingfly.core.jdbc.service.JPAService;
import com.codingfly.entity.SysGroup;

public interface SysGroupService extends JPAService<SysGroup, Integer> {
    SysGroup findByCode(String code);

    SysGroup findRoot();

    void deleteById(Integer id);

    boolean hasChildren(Integer id);

}
